<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Member
 *
 * @author Zoila
 */
class Member extends AppModel{
    //put your code here
     var $validate = array(
        
       'user_id' => array( 'required'=> array(
                                'rule' => array('notEmpty'),
                                'message' => 'A username is required'
                            )
                    ),
         'team_id' => array( 'required'=> array(
                                'rule' => array('notEmpty'),
                                'message' => 'A username is required'
                            )
                    )
         );
    public $belongsTo = array(
        'Team' => array(
            'className'    => 'Team',
            'foreignKey'   => 'team_id'
        )
   );
}

?>
